//
//  HttpConn.h
//  ApiBase
//
//  Created by Liam on 12-10-3.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HttpConn : NSObject {

	NSError * _error;
	NSOutputStream * _outStream;
	
	NSURLConnection * _connection;
	BOOL _isRunning;
	BOOL _isCancel;
	
	id _delegate;
	
	NSRunLoop *_runLoop;
	NSURLRequest *_request;
}

- (NSError *)executeRequest:(NSURLRequest *)connectionRequest withOutStream:(NSOutputStream *)outStream connectionDelegate:(id)delegate;
- (void)cancel;

@end
